Monitoring of respiratory mechanics parameters